<template>
  <h1>哈哈</h1>
  <Select :options="citys" :res="cityRes" :change="setCityRes" @abc="setCityRes" />
  <Btn2 />
  <button>{{ num }}</button>
</template>
<script>
import Select from "./components/select.vue"
import Btn2 from "./components/Btn2.vue"
export default {
  data() {
    return {
      citys: ['北京', '上海', '南京', '周口'],
      cityRes: '周口',
      num: 0
    }
  },
  methods: {
    setCityRes(val) {
      this.cityRes = val
    }
  },
  components: {
    Select,
    Btn2,
  }
}
</script>
